home *** CD-ROM | disk | FTP | other *** search
/ Aminet 40 / Aminet 40 (2000)(Schatztruhe)[!][Dec 2000].iso / Aminet / dev / lang / Python16_Src.lha / Python16_Source / Include / sysmodule.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-08-03  |  890 b   |  31 lines

  1. #ifndef Py_SYSMODULE_H
  2. #define Py_SYSMODULE_H
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6.  
  7. /* System module interface */
  8.  
  9. DL_IMPORT(PyObject *) PySys_GetObject Py_PROTO((char *));
  10. DL_IMPORT(int) PySys_SetObject Py_PROTO((char *, PyObject *));
  11. DL_IMPORT(FILE *) PySys_GetFile Py_PROTO((char *, FILE *));
  12. DL_IMPORT(void) PySys_SetArgv Py_PROTO((int, char **));
  13. DL_IMPORT(void) PySys_SetPath Py_PROTO((char *));
  14.  
  15. #ifdef HAVE_STDARG_PROTOTYPES
  16. DL_IMPORT(void) PySys_WriteStdout(const char *format, ...);
  17. DL_IMPORT(void) PySys_WriteStderr(const char *format, ...);
  18. #else
  19. /* Better to have no prototypes at all for varargs functions in this case */
  20. DL_IMPORT(void) PySys_WriteStdout();
  21. DL_IMPORT(void) PySys_WriteStderr();
  22. #endif
  23.  
  24. extern DL_IMPORT(PyObject *) _PySys_TraceFunc, *_PySys_ProfileFunc;
  25. extern DL_IMPORT(int) _PySys_CheckInterval;
  26.  
  27. #ifdef __cplusplus
  28. }
  29. #endif
  30. #endif /* !Py_SYSMODULE_H */
  31.